<?php
$this->layout('head');
?>
<script type="text/javascript">
Element.observe(window, 'load', function(){
    $$('input.text').each(function(i){
        Element.observe(i, 'mouseover', function(){i.select();});
    });
});
</script>
        <form action="/setting/save" method="post">
            <?
            $i = 0;
            if (!empty($this->config)):
                foreach ($this->config as $k => $v):
            ?>
            <div class="config <?=($i%2?'odd':'even')?>"><span class="formLabel"><?=$k?></span><label><input name="<?=$k?>" type="text" value="<?=$v[0]?>" class="text long" />&nbsp;<?=$v[1]?></label></div>
            <?
                    $i++;
                endforeach;
            else:
            ?>
            <div class="config even"><?=_('暂无内容')?></div>
            <?endif;?>
            <div class="config <?=($i%2?'odd':'even')?>"><span class="formLabel"></span><input name="submit" type="submit" value="<?=_('保存')?>" class="submit" /></div>
        </form>
<?php $this->layout('foot');?>
